package de.xt.logging.gui;

import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.UnsupportedLookAndFeelException;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
		    for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
		        if ("Nimbus".equals(info.getName())) {
		            UIManager.setLookAndFeel(info.getClassName());
		            break;
		        }
		    }
		} catch (Exception e) {
		    try {
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			} catch (ClassNotFoundException e1) {
				new Popup("Fehler!", e1.getMessage());
			} catch (InstantiationException e1) {
				new Popup("Fehler!", e1.getMessage());
			} catch (IllegalAccessException e1) {
				new Popup("Fehler!", e1.getMessage());
			} catch (UnsupportedLookAndFeelException e1) {
				new Popup("Fehler!", e1.getMessage());
			}
		}
		Gui gui = new Gui();
		gui.inti();
	}

}
